import 'package:sow_app_i18n/sow_app_i18n.dart';
import 'package:test/test.dart';

import 'package:sow_app_mock/sow_app_mock.dart';

void main() {
  group('classify controller test group', () {
    final MockClassifyPresenter presenter = MockClassifyPresenter();
    final controller = MockClassifyController(presenter);
    test("should have at least one option when invoke initCatList", () async {
      await controller.initCatList();
      await Future.doWhile(() => presenter.flag = false);
      expect(presenter.allClassifyOptions[WorkDirection.boy]!.first.classifyId,
          '-1');
    });
  });
}
